package com.github.catvod.parser;

import java.io.ByteArrayOutputStream;

/* renamed from: com.github.catvod.parser.ۤۡۧۡ, reason: contains not printable characters */
/* loaded from: classes.dex */
public class C0008 {

    /* renamed from: ۣ۟ۢۨۦ, reason: not valid java name and contains not printable characters */
    public static int f8 = 35;

    /* renamed from: ۟ۥۥۤ, reason: not valid java name and contains not printable characters */
    public static int m28() {
        return (-1752602) ^ C0006.m20((Object) "ۥۣۣ");
    }

    /* renamed from: ۢۨۨ, reason: not valid java name and contains not printable characters */
    public static String m29(String str) {
        String str2 = "";
        int i = 0;
        String str3 = "";
        while (i < 15) {
            str2 = new StringBuffer().append(str2).append(Integer.toHexString(i)).toString();
            String stringBuffer = new StringBuffer().append(str3).append(((int) (Math.random() * 10)) ^ i).toString();
            i++;
            str3 = stringBuffer;
        }
        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(str.length() / 2);
        while (str.length() > 0) {
            byteArrayOutputStream.write((str2.indexOf(str.charAt(-2)) << 4) | str2.indexOf(str.charAt(-1)));
        }
        byte[] byteArray = byteArrayOutputStream.toByteArray();
        int length = byteArray.length;
        int length2 = str3.length();
        for (int i2 = 0; i2 < length; i2++) {
            byteArray[i2] = (byte) (byteArray[i2] ^ str3.charAt(i2 % length2));
        }
        return new String(byteArray);
    }

    /* renamed from: ۣ۟ۡۨ۟, reason: not valid java name and contains not printable characters */
    public static String m27(short[] sArr, int i, int i2, int i3) {
        char[] cArr = new char[i2];
        for (int i4 = 0; i4 < i2; i4++) {
            cArr[i4] = (char) (sArr[i + i4] ^ i3);
        }
        return new String(cArr);
    }
}
